#/bin/bash

sudo mkdir -p /usr/share/pixmaps/
sudo cp -rf ./misc/qtiptv.png /usr/share/pixmaps/
sudo chmod 644 /usr/share/pixmaps/qtiptv.png

sudo mkdir -p /usr/share/app-install/icons/ 
sudo cp ./misc/qtiptv.png /usr/share/app-install/icons/
sudo chmod 644 /usr/share/app-install/icons/qtiptv.png

sudo rm -rf /usr/share/qtiptv/
sudo mkdir -p /usr/share/qtiptv/
sudo cp -rf README COPYING ChangeLog CREDITS.txt misc icons /usr/share/qtiptv/
sudo chmod -R 755 /usr/share/qtiptv/

sudo mkdir -p /usr/share/applications/ 
sudo cp -rf ./misc/qtiptv.desktop /usr/share/applications/
sudo chmod 644 /usr/share/applications/qtiptv.desktop

sudo cp -rf qtiptv /usr/bin
sudo strip /usr/bin/qtiptv
sudo chmod +x /usr/bin/qtiptv
